package com.zhiche.lisa.bms.dao.mapper.driver;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zhiche.lisa.bms.dao.model.driver.PriceconfMile;
import com.zhiche.lisa.bms.pojo.vo.driver.PriceconfMileVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 线路计价里程 Mapper 接口
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
public interface PriceconfMileMapper extends BaseMapper<PriceconfMile> {

    /**
     * 分页查找线路计价里程
     * @param page
     * @param ew
     * @return
     */
    List<PriceconfMileVO> selectByConditions(Page<PriceconfMileVO> page,
                                            @Param("ew") Wrapper<PriceconfMileVO> ew);

    /**
     * 查找线路计价里程
     * @param ew
     * @return
     */
    PriceconfMileVO getOneByEW(@Param("ew") Wrapper<PriceconfMileVO> ew);
}
